package net.sxnic.item.udcp;

import javax.persistence.Entity;
import javax.persistence.Table;

import net.sxinfo.core.entity.AbstractEntity;

import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * 用户、部门与类别权限对应关系表
 * 
 * @author yfsun
 * 
 */
@Entity
@Table(name = "item_udcp")
@BatchSize(size = 10)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Udcp extends AbstractEntity {

	private static final long serialVersionUID = -6051249869824900940L;

	private String userId;
	private String userName;

	private String deptId;
	private String deptCode;

	/**
	 * 类别权限名，格式 item_query或item_verify或item.001_verify 逗号分隔
	 */
	private String clpvName;

	public Udcp() {
		super();
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getDeptCode() {
		return deptCode;
	}

	public void setDeptCode(String deptCode) {
		this.deptCode = deptCode;
	}

	public String getClpvName() {
		return clpvName;
	}

	public void setClpvName(String clpvName) {
		this.clpvName = clpvName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

}
